package com.example.demo.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.example.demo.core.handler.exception.ResultBO;
import com.example.demo.core.handler.exception.ResultTool;
import com.example.demo.sys.service.DicService;

@Controller
@RequestMapping("/")
public class DicController {
	@Autowired
	private DicService dicService;
	
	@GetMapping("/dict")
	@ResponseBody
	public ResultBO<?> getDics() {
		return ResultTool.success(dicService.getDics());
	}
}
